package braipetro.client.core;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */



import braipetro.data_access.DataSet;
import braipetro.data_access.DataFieldType;
import braipetro.client.core.FrmPrincipal;
import javax.swing.JFrame;
import javax.swing.UIManager;
import javax.swing.UIManager.LookAndFeelInfo;
import static javax.swing.WindowConstants.DISPOSE_ON_CLOSE;



/**
 *
 * @author manasses
 */
public class BRAIPetroJava {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        try {
            for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {
                if ("Windows".equals(info.getName())) {
                    UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (Exception e) {
            // If Nimbus is not available, you can set the GUI to another look and feel.
        }
       
        
        
        /*
        DataSet dts = new DataSet();
        dts.setSql("select id_unidade, nome from unidade where id_unidade = :id_unidade");
        dts.addParameter("id_unidade", 11, DataFieldType.INTEGER);
        dts.open();
        
        
        
        dts.close();
        */
        
       
        FrmPrincipal frm = new FrmPrincipal();
        frm.setLocationRelativeTo(null);
        frm.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
        frm.setExtendedState(JFrame.MAXIMIZED_BOTH);
        frm.setVisible(true);
        
        
    }
    
}
